package com.topvision.service.impl.ar;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.topvision.mapper.ar.CompanyMapper;
import com.topvision.model.ar.Company;
import com.topvision.service.ar.CompanyService;

@Service("companyService")
public class CompanyServiceImpl implements CompanyService {
	@Autowired
	private CompanyMapper companyMapper;
	
	@Override
	public Company queryObject(Long id){
		return companyMapper.queryObject(id);
	}
	
	@Override
	public List<Company> queryList(Map<String, Object> map){
		return companyMapper.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return companyMapper.queryTotal(map);
	}
	
	@Override
	public void save(Company company){
		companyMapper.save(company);
	}
	
	@Override
	public void update(Company company){
		companyMapper.update(company);
	}
	
	@Override
	public void delete(Long id){
		companyMapper.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		companyMapper.deleteBatch(ids);
	}

    @Override
    public Company queryObjectByMap(Map<String, Object> map){
        return companyMapper.queryObjectByMap(map);
    }

    @Override
    public List<Company> queryByParam(Map<String, Object> map){
        return companyMapper.queryByParam(map);
    }
}
